package pers.wangyuhang.demo1;

/**
 * Created with IntelliJ IDEA.
 * Desciption:用于测试两个Person和Student类
 * User: 15716
 * Date: 2021-12-22
 * Time: 20:07
 */
public class ExtendsTest {
    public static void main(String[] args) {
        Person p1 = new Person();
        p1.age = 2;
        p1.eat();

//

        Student s1 = new Student();
        s1.name = "李华";
        s1.eat();
        s1.sleep();
    }
}
